package com.zy.modules.sys.repo;

import com.zy.modules.sys.entity.SysUserTokenEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * <p></p>
 * Created by zhezhiyong@163.com on 2017/7/25.
 */
public interface UserTokenRepository extends PagingAndSortingRepository<SysUserTokenEntity, Long>, JpaSpecificationExecutor<SysUserTokenEntity> {

    SysUserTokenEntity findByToken(String token);

    SysUserTokenEntity findByUserId(Long userId);
}
